package com.hmall.common.config;

import feign.Logger;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Feign配置类
 *
 * @Author Vsunks.v
 * @Date 2022/7/31 15:19
 * @Blog blog.sunxiaowei.net/996.mba
 * @Description: 配置类
 */
@Configuration
public class FeignConfig {

    @Bean
    public Logger.Level level() {
        return Logger.Level.BASIC;// 日志级别为BASIC
    }
        //
    @Bean
    public MyFeignInterceptor myFeignInterceptor() {
        return new MyFeignInterceptor();
    }
}
